import * as types from './mutation-types'

const matutaions = {
  [types.SET_CATEGORY](state, list) {
    state.category = list
  },
  [types.SET_TYPE](state, data) {
    state.type = data
  },
  [types.SET_CATEGORYID](state, data) {
    state.categoryID = data
  },
  [types.SET_SEARCHVALUE](state, data) {
    state.searchValue = data
  },
}

export default matutaions
